<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <s:debug></s:debug>
  <body>
	<s:form action="complexTypeConvertTest" theme="xhtml">
		<s:textfield name="persons[0].name" label="姓名"></s:textfield>
		<s:textfield name="persons[0].age" label="年龄"></s:textfield>
		<s:select list="{'河北省','麻省','吉林省'}" headerValue="请选择" name="persons[0].address.province" label="省份"></s:select>
		<s:select list="{'长春市','吉林市','九台市','延吉市'}" headerValue="请选择" name="persons[0].address.city" label="城市"></s:select>
		<s:select list="{'朝阳区','净月区','高薪区'}" headerValue="请选择" name="persons[0].address.village" label="区域"></s:select>
		<s:select list="{'双德乡','这个乡','那个乡'}" headerValue="请选择" name="persons[0].address.town" label="街道"></s:select>
		<s:textfield name="persons[1].name" label="姓名"></s:textfield>
		<s:textfield name="persons[1].age" label="年龄"></s:textfield>
		<s:select list="{'河北省','麻省','吉林省'}" headerValue="请选择" name="persons[1].address.province" label="省份"></s:select>
		<s:select list="{'长春市','吉林市','九台市','延吉市'}" headerValue="请选择" name="persons[1].address.city" label="城市"></s:select>
		<s:select list="{'朝阳区','净月区','高薪区'}" headerValue="请选择" name="persons[1].address.village" label="区域"></s:select>
		<s:select list="{'双德乡','这个乡','那个乡'}" headerValue="请选择" name="persons[1].address.town" label="街道"></s:select>
		<s:textfield name="persons[2].name" label="姓名"></s:textfield>
		<s:textfield name="persons[2].age" label="年龄"></s:textfield>
		<s:select list="{'河北省','麻省','吉林省'}" headerValue="请选择" name="persons[2].address.province" label="省份"></s:select>
		<s:select list="{'长春市','吉林市','九台市','延吉市'}" headerValue="请选择" name="persons[2].address.city" label="城市"></s:select>
		<s:select list="{'朝阳区','净月区','高薪区'}" headerValue="请选择" name="persons[2].address.village" label="区域"></s:select>
		<s:select list="{'双德乡','这个乡','那个乡'}" headerValue="请选择" name="persons[2].address.town" label="街道"></s:select>
		<s:submit></s:submit>
	</s:form>
  </body>
</html>
